<?php

use Illuminate\Database\Seeder;

class MenuTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
    	DB::table('menus')->truncate();

        DB::table('menus')->insert([
            // 一级导航
            ['name' => '网站订单', 'pid'  => 0, 'url'  => 'admin/order'], 
            ['name' => '通用订单', 'pid'  => 0, 'url'  => 'admin/order?type=2'], 
            ['name' => '其他订单', 'pid'  => 0, 'url'  => 'admin/other-order'], 
            ['name' => '订单进度', 'pid'  => 0, 'url'  => 'admin/order/progress-tongji'],
            ['name' => '订单管理', 'pid'  => 0, 'url'  => 'admin/order/manager'],
            ['name' => '客户管理', 'pid'  => 0, 'url'  => 'admin/customer'], 
            ['name' => '用户管理', 'pid'  => 0, 'url'  => 'admin/user'],
            ['name' => '我的订单', 'pid'  => 0, 'url'  => 'admin/order/myorder'],
            ['name' => '菜单管理', 'pid'  => 0, 'url'  => 'admin/menu'],
            ['name' => '合同管理', 'pid'  => 0, 'url'  => 'admin/contract'],    
            ['name' => '续费记录', 'pid'  => 0, 'url'  => 'admin/renew'],     
            ['name' => '个人资料', 'pid'  => 0, 'url'  => 'admin/user/edit-info'],   

            // 用户管理 2 级
            ['name' => '管理用户',   'pid' => 7, 'url'  => 'admin/user'],
            ['name' => '管理用户组', 'pid' => 7, 'url'  => 'admin/group'],
            ['name' => '管理部门',   'pid' => 7, 'url'  => 'admin/department'], 
            
            // 我的订单 2 级
            ['name' => '网站订单', 'pid'  => 8, 'url'  => 'admin/order/myorder'],     
            ['name' => '通用订单', 'pid'  => 8, 'url'  => 'admin/order/myorder?type=2'],  
            ['name' => '网站录入', 'pid'  => 8, 'url'  => 'admin/order/myinput'],    
        ]);
    }
}
